package com.itcast.activiti.event;

import com.itcast.activiti.domain.TaskStart;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 审批结果通知
 */
@Getter
public class NotifyTaskApplyEvent extends ApplicationEvent {
    private String tenantId;
    private String businessKey;
    private String assignee;
    private TaskStart taskStart;
    private String taskId;

    public NotifyTaskApplyEvent(Object source, String tenantId, String businessKey, String assignee, TaskStart taskStart, String taskId) {
        super(source);
        this.tenantId = tenantId;
        this.businessKey = businessKey;
        this.assignee = assignee;
        this.taskStart = taskStart;
        this.taskId = taskId;
    }
}
